import {get, post, del, put} from "@/apis/http/request";
import {ProxyMechanismCategory} from "@/apis/model/proxy/ProxyMechanismCategoryModel";

/**
* 得到列表
* @param params
*/
export const getProxyMechanismCategoryList = (params: any) => get("/proxyMechanismCategory/list", params)

/**
* 得到分页列表
* @param params
*/
export const proxyMechanismCategoryPage = (params: any) => post("/proxyMechanismCategory/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteProxyMechanismCategoryById = (id: number) => del("/proxyMechanismCategory/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertProxyMechanismCategory = (param: ProxyMechanismCategory) => post("/proxyMechanismCategory", param)

/**
* 更新数据
* @param param
*/
export const updateProxyMechanismCategory = (param: ProxyMechanismCategory) => put("/proxyMechanismCategory", param)
